<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2021/9/7
  Time: 16:34
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
    <%@ include file="/common/head.jsp"%>
</head>
<body>
<h1>编辑图书</h1>
<div align="right">
    <font color="red" face="楷体" size="3">
        <%@include file="/common/managerMenu.jsp"%>
    </font>
</div>
<%--param:它可以获取请求参数的值--%>
<form action="manager/bs" method="get">
    <input type="hidden" name="action" value="${empty requestScope.book.id?"add":"update"}">
    <input type="hidden" name="id" value="${requestScope.book.id}">
    <input type="hidden" name="pageNo" value="${param.pageNo}">
    <table border="1" align="center">
        <tr>
            <th>名称</th>
            <th>价格</th>
            <th>作者</th>
            <th>销量</th>
            <th>库存</th>
            <th>操作</th>
        </tr>
        <tr>
            <td>
                <input type="text" name="name" value="${requestScope.book.name}">
            </td>
            <td>
                <input type="text" name="price" value="${requestScope.book.price}">
            </td>
            <td>
                <input type="text" name="author" value="${requestScope.book.author}">
            </td>
            <td>
                <input type="text" name="sales" value="${requestScope.book.sales}">
            </td>
            <td>
                <input type="text" name="stock" value="${requestScope.book.stock}">
            </td>
            <th>
                <input type="submit" value="提交">
            </th>
        </tr>
    </table>
</form>
</body>
</html>
